package com.personal.exception;

import com.personal.utils.Result;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 统一异常类
 */
@Data
@NoArgsConstructor
public class ItMallException extends RuntimeException {

    @Getter
    private Result result;

    public ItMallException(Result result){
        this.result = result;
    }

}
